]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/yasnippet/snippets/ruby-mode/control structure/ife
Add yasnippet.
[gnu-emacs-elpa] / packages / yasnippet / snippets / ruby-mode / control structure / ife
diff --git a/packages/yasnippet/snippets/ruby-mode/control structure/ife b/packages/yasnippet/snippets/ruby-mode/control structure/ife
new file mode 100644 (file)
index 0000000..946b71c
--- /dev/null
@@ -0,0 +1,8 @@
+# name: if ... else ... end
+# key: ife
+# --
+if ${1:condition}
+  $2
+else
+  $3
+end
\ No newline at end of file